function collect_same_elements(collection_a, object_b) {
  //在这里写入代码
  let arr=new Array();
  for(let i of collection_a)
  for(let j of object_b.value)
  {
    if(i.key==j)
    arr.push(i.key);
  }
  return arr;


}

module.exports = collect_same_elements;
